<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<jsp:include page="head.htm"/>
</head>
<body>
	<jsp:include page="loggedIn.jsp" />
	<jsp:include page="isAdmin.jsp" />
	<div id="head"><h1>Zeiterfassung</h1></div>
	<jsp:include page="menu.jsp"/>

	<div id="content">
		<form method="get" action="EditFeiertage.html" class="button">
			<table cellpadding="0" cellspacing="0">
				<tr class="submit">
					<td colspan="2">
							<input type="submit" value=" neue Feiertage anlegen " />
					</td>
				</tr>
			</table>
		</form>	
	
		<br>
		<br>
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>

			
		<table cellpadding="0" cellspacing="0" class="atag">
			<tr>
				<th></th>
				<th></th>
				<th>Datum</th>
				<th>Bezeichnung</th>
				
			</tr>
			<c:forEach items="${feiertage}" var="feiertage">
				<tr>
					<td>
						<a href="EditFeiertage.html?id=<c:out value="${feiertage.id}"/>">
							<img src="images/edit_s.png" alt="Icon - Bearbeite Feiertage"/>
						</a>
					</td>
					<td>
						<a href="DeleteFeiertage.html?id=<c:out value="${feiertage.id}"/>">
							<img src="images/delete.png" alt="Icon - Lösche Feiertage"/>
						</a>
					</td>
					<td>
						<fmt:formatDate value="${feiertage.id}" type="date" pattern="dd.MM.yyyy" />
					</td>
					<td>
						<c:out value="${feiertage.ftag_bez}"/>
					</td>
				</tr>
			</c:forEach>  
		</table>
	</div>
</body>
</html>  